FROM mysql:5.7

COPY ./init_sql  /tmp/init_sql
COPY ./conf/m_mysql.cnf /tmp/init_sql/
RUN mv /tmp/init_sql/*.sql /docker-entrypoint-initdb.d
RUN mv /tmp/init_sql/*.cnf /etc/mysql/conf.d/
RUN rm -rf /tmp/init_sql